﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Liang.DataBase.SQLiteEx
{
    interface ISQLiteEx<T>
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity">实体</param>
        /// <returns></returns>
        bool Insert(T entity);

        /// <summary>
        /// 批量新增
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="entities"></param>
        /// <returns></returns>
        bool Insert(List<T> entities);

        /// <summary>
        /// 查询所有
        /// </summary>
        /// <returns>数据集合</returns>
        List<T> Query();
    }
}
